import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'movie.settings')
django.setup()


from myapp.models import Actor, Movie

movie3 = Movie.objects.get(id=3)

actor1 = Actor.objects.get(id=1)

actor1.movie_set.add(movie3)

